package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.DunApplicationMapper;
import com.ruoyi.domain.DunApplication;
import com.ruoyi.service.IDunApplicationService;
import com.ruoyi.common.core.text.Convert;

/**
 * 催款申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-06-22
 */
@Service
public class DunApplicationServiceImpl implements IDunApplicationService 
{
    @Autowired
    private DunApplicationMapper dunApplicationMapper;

    /**
     * 查询催款申请
     * 
     * @param dId 催款申请ID
     * @return 催款申请
     */
    @Override
    public DunApplication selectDunApplicationById(Long dId)
    {
        return dunApplicationMapper.selectDunApplicationById(dId);
    }

    @Override
    public List<DunApplication> selectid(Long pId) {
        return dunApplicationMapper.selectid(pId);
    }

    /**
     * 查询催款申请列表
     * 
     * @param dunApplication 催款申请
     * @return 催款申请
     */
    @Override
    public List<DunApplication> selectDunApplicationList(DunApplication dunApplication)
    {
        return dunApplicationMapper.selectDunApplicationList(dunApplication);
    }

    /**
     * 新增催款申请
     * 
     * @param dunApplication 催款申请
     * @return 结果
     */
    @Override
    public int insertDunApplication(DunApplication dunApplication)
    {
        return dunApplicationMapper.insertDunApplication(dunApplication);
    }

    /**
     * 修改催款申请
     * 
     * @param dunApplication 催款申请
     * @return 结果
     */
    @Override
    public int updateDunApplication(DunApplication dunApplication)
    {
        return dunApplicationMapper.updateDunApplication(dunApplication);
    }

    /**
     * 删除催款申请对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteDunApplicationByIds(String ids)
    {
        return dunApplicationMapper.deleteDunApplicationByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除催款申请信息
     * 
     * @param dId 催款申请ID
     * @return 结果
     */
    @Override
    public int deleteDunApplicationById(Long dId)
    {
        return dunApplicationMapper.deleteDunApplicationById(dId);
    }
    /**
     * 导出所有
     *
     * @param dp
     * @return 结果
     */

    @Override
    public List<DunApplication> selectAllexport(DunApplication dp) {
        return dunApplicationMapper.selectAllexport(dp);
    }


}
